<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>30_属性-删除</title>
    </head>
    <body>
        <script>
            var person = {name:'lisi',age:18};

            console.log(person);

            delete person.age;
            delete person['name'];

            console.log(person);
        </script>
    </body>
</html>